import http from "@/utils/request";
export default {
	login: {
		url: `/app/user/login`,
		name: "用户登录",
		async post(data = {}) {
			return await http.post(this.url, data);
		},
	},
	forget: {
		url: `/app/user/register`,
		name: "用户注册/修改",
		async post(data = {}) {
			return await http.post(this.url, data);
		},
	},
	sendSms: {
		url: `/app/user/sendSMS`,
		name: "发送短信",
		async get(data = {}) {
			return await http.get(this.url, data);
		},
	},
	handleSilent: {
		url: `/app/user/handleSilent`,
		name: "激活沉默账号",
		async post(data = {}, config = {}) {
			return await http.post(this.url, data, config);
		},
	},
	wxGZHcode: {
		url: `/app/user/wxGZHcode`,
		name: "微信公众号授权",
		async get(data = {}) {
			return await http.get(this.url, data);
		},
	},
};
